#ifndef MYLISTVIEW_H
#define MYLISTVIEW_H

#include <QListView>
#include <QStringListModel>
#include <QWidget>

class MyListView : public QWidget
{
    Q_OBJECT

public:
    MyListView(QWidget *parent = 0);
    ~MyListView();
    virtual QSize sizeHint() const;

private:
    QStringListModel *model;
    QListView *listView;

private slots:
    void insertData();
    void deleteData();
    void showData();

};

#endif // MYLISTVIEW_H
